﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masterpage/CommonPage.master" AutoEventWireup="true" CodeFile="ActivityManagement.aspx.cs" Inherits="Activity_ActivityManagement" %>

<%@ Register Assembly="Expo.Training.BRule" Namespace="Expo.Training.BRule.Controls" TagPrefix="CC" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="pagenav"><b>您现在的位置：</b>我的管理平台 > <a href="ActivityManagement.aspx">活动信息管理</a></div>
<div style="overflow:auto;">
    <!--paneltitle-->
    <div class="paneltitle">活动列表</div>
    <!--paneladd-->
    <div class="paneladd"><img src="<%=ResolveThemeImagePath("icon_add.gif")%>" width="15" height="15" border="0" alt="" align="absmiddle" />&nbsp;<a href="AddActivity.aspx">添加活动</a></div>
</div>

<div class="DG" id="dv_Result" runat="server" visible="true">
    <table cellspacing="0">
        <thead>
            <tr>
                <th style="width:7%;">序号</th>
                <th style="width:60%;">活动名称</th>
                <th style="width:9%;">人数</th>
                <th style="width:24%;">操作</th>
            </tr>
        </thead>
        <tbody>
            <asp:Repeater runat="server" ID="rpt_ActivityList" OnItemCommand="rpt_Activity_ItemCommand" OnItemDataBound="rpt_Activity_ItemDataBound">
                <ItemTemplate>
                    <tr>
                        <td><asp:Literal ID="rowIndex" runat="server"></asp:Literal></td>
                        <td><%# Eval("ActivityTitle")%></td>
                        <td><%# Eval("Count")%></td>
                        
                        <td>
                            <input type="button" class="editButton" onclick="javascript:location.href='EditActivity.aspx?id=<%#Eval("ActivityID")%>'" />                
                            <asp:Button ID="btn_Delete" runat="server" ToolTip="删除该活动" CausesValidation="true" CommandName="delete" OnClientClick="return confirm('确定要删除吗？')" CommandArgument='<%#Eval("ActivityID") %>' CssClass="deleteButton" />
                            <a href="ActivityCourseManagement.aspx?id=<%#Eval("ActivityID")%>">关联课程</a>
                        </td>
                    </tr>
                </ItemTemplate>        
            </asp:Repeater>
        </tbody>
    </table>
    <div class="expager">
        <div class="right">
            <CC:ExPager ID="cc_ExPager" runat="server" OnIndexChanged="PageIndex_Changed"  />
        </div>
    </div>
</div>

</asp:Content>

